<?php

/**
 * @author	barbarosalcin
 * @desc	default page
 * @version	$Id: 20110317
 * @package general
 */

$sql = "select * from ".CONTENT_TABLE." where url='{$req['subpage_orig']}'";

if(!($result = $tk->db->sql_query($sql))){
	$error = 'sql';
	$tk->eh->message_die($req['subpage'], $error, __LINE__, __FILE__,$sql);
	goto end;
}

$tmp = $tk->db->sql_fetchrowset($result);
$data = $tmp[0];
$tk->page->_pv['page_title'] = $data['page_title'];
$tk->page->_pv['page_keywords'] = $data['page_keywords'];
$tk->page->_pv['page_desc'] = $data['page_desc'];

unset($tmp);

end: